// components/system/encyclopedia/encyclopedia.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {

    },

    /**
     * 组件的初始数据
     */
    data: {
        activeKey: 0,
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onChange(event) {
            
            this.setData({
                activeKey: event.detail
            })
            console.log(this.data.activeKey)
        },

        onReachBottom(){

            if(this.data.activeKey == 0){
                // console.log("鱼类百科上拉触底1")
                let fish_encyclopedia  =  this.selectComponent("#fish_encyclopedia ")
                fish_encyclopedia.fishBaiKeLoad()
            }else{
                console.log("鱼病百科上拉触底1")
                let disease_encyclopedia  = this.selectComponent("#disease_encyclopedia")
                disease_encyclopedia.diseaseLoad()
            }

           
        }

    }
})
